#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDialog>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    connect(ui->action,&QAction::triggered,[=](){
        QDialog* dialog = new QDialog(this);
        dialog->resize(400,300);
        dialog->exec();
    });
}

MainWindow::~MainWindow()
{
    delete ui;
}

